package bookManager;

import bookManager.operations.*;

import java.util.Scanner;

public class NormalUser extends User{
    public NormalUser() {
        operations=new IOperation[]{
                new ExitOperation(),
                new DisplayOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation()
        };
    }
    @Override
    public int menu() {
        System.out.println("=====================");
        System.out.println("1.查看书籍列表");
        System.out.println("2.查找书籍");
        System.out.println("3.借书");
        System.out.println("4.还书");
        System.out.println("0.退出");
        System.out.println("=====================");
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入选项：");
        int choice=scanner.nextInt();
        return choice;
    }
}
